package com.zenithmind.common.config;

import com.zenithmind.common.interceptor.ResponseInterceptor;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurer;

/**
 * Web响应配置类
 * 配置统一响应处理和相关组件
 */
@Configuration
public class WebResponseConfig implements WebMvcConfigurer {

    /**
     * 创建响应拦截器Bean
     * 
     * @return ResponseInterceptor实例
     */
    @Bean
    public ResponseInterceptor responseInterceptor() {
        return new ResponseInterceptor();
    }
} 